package com.cloud.zuul.bean;

import lombok.Data;

@Data
public class ReleaseInfo implements Comparable<ReleaseInfo> {

    private String version;
    private String userId;
    private String userArea;

    @Override
    public int compareTo(ReleaseInfo info) {
        //按降序排
        int v = this.version.compareTo(info.getVersion());
        if (v > 0) {
            return -1;
        }
        if (v < 0) {
            return 1;
        }
        return 0;
    }

}
